<template>
  <swiper>
    <swiperitem v-for="(item, index) in banners" :key="index">
      <a :href="item.link"
        ><img :src="item.image" alt="" @load.once="swiperimageload"
      /></a>
    </swiperitem>
  </swiper>
</template>

<script>
import { swiper, swiperitem } from "components/common/swiper";
export default {
  name: "swipershow",
  props: {
    banners: {
      type: Array,
      default() {
        return [];
      },
    },
  },
  components: {
    swiper,
    swiperitem,
  },
  methods: {
    swiperimageload() {
      this.$emit('swiperimageload')
    },
  },
};
</script>

<style scoped>
</style>